import java.util.Date;


public class Treballador extends Persona{
	
	String carrec;
	Date alta;
	int descompte=10;
	int souBase=800;
	public String getCarrec() {
		return carrec;
	}
	public void setCarrec(String carrec) {
		this.carrec = carrec;
	}
	public Date getAlta() {
		return alta;
	}
	public void setAlta(Date alta) {
		this.alta = alta;
	}
	public int getDescompte() {
		return descompte;
	}
	public void setDescompte(int descompte) {
		this.descompte = descompte;
	}
	public int getSouBase() {
		return souBase;
	}
	public void setSouBase(int souBase) {
		this.souBase = souBase;
	}
	
	public Treballador(String nom, String dni, String carrec, Date alta){
		super(nom,dni);
		setCarrec(carrec);
		setAlta(alta);
	}
	
	public int Sou(){
		return getSouBase();
	}
}
